package com.wing.common.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wing.common.model.entity.ContractChangeRecord;
import com.wing.common.model.request.ContractChangeRecordForm;
import com.wing.common.model.response.ContractChangeRecordVO;

import java.util.List;
import java.util.Map;

/**
 * 合同变更记录-Service
 *
 * @author
 */
public interface ContractChangeRecordService extends IService<ContractChangeRecord> {

    /**
     * 添加
     *
     * @param contractChangeRecordForm
     * @return
     */
    int add(ContractChangeRecordForm contractChangeRecordForm);

    /**
     * 列表-app
     *
     * @param params
     *
     * @return
     */
    List<ContractChangeRecordVO> list4app(Map<String, Object> params);

    /**
     * 分页list-app
     *
     * @param page
     * @param params
     *
     * @return
     */
    Page<ContractChangeRecordVO> pageList4app(Page page, Map<String, Object> params);

    /**
     * 详情-app
     *
     * @param id
     *
     * @return
     */
    ContractChangeRecordVO get4appById(Long id);

    /**
     * 设置合同为终版
     * @param id
     * @param deliveryTime
     * @param address
     * @param keeper
     */
    boolean setContractFinal(Long id, String deliveryTime, String address, Long keeper);
}
